package com.ssy.lingxi.product.entity.es;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * 商品已售数量
 * @author jw.chen
 * @version 2.0.0
 * @date 2021/7/29
 */
@Data
public class EsCommoditySoldCount implements Serializable {
    private static final long serialVersionUID = -502046663193740334L;

    /**
     * 商城id
     */
    private Long shopId;

    /**
     * 已售数量
     */
    @Field(type = FieldType.Double)
    private double sold;
}
